package com.hanxiaozhang.base;

import java.io.Serializable;

/**
 * 〈一句话功能简述〉<br>
 * 〈元祖类〉
 *
 * @author hanxinghua
 * @create 2021/5/2
 * @since 1.0.0
 */
public class KeyValuePair<K, V> implements Serializable {

    private static final long serialVersionUID = 1L;

    private K k;
    private V v;

    public KeyValuePair() {
    }

    public KeyValuePair(K k, V v) {
        this.k = k;
        this.v = v;
    }

    public K getK() {
        return k;
    }

    public void setK(K k) {
        this.k = k;
    }

    public V getV() {
        return v;
    }

    public void setV(V v) {
        this.v = v;
    }

    @Override
    public String toString() {
        return "KeyValuePair{" + k + " : " + v + "}";
    }
}
